// styleChat.scss 新增样式
.message-container {
  display: flex;
  align-items: flex-start;
  margin: 15px 0;
  padding: 0 20px;
 
  &.left {
    font-size: 18px;
    justify-content: flex-start;
    .bubble {
      margin-left: 15px;
    }
  }

  &.right {
    font-size: 18px;
    justify-content: flex-end;
    .bubble {
      margin-right: 15px;
    }
  }

  .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;

    &.left {
      order: 0;
    }

    &.right {
      order: 1;
    }
  }

  .bubble {
    max-width: 70%;
    padding: 12px 20px;
    border-radius: 12px;
    line-height: 1.5;

    &.left {
      background: #f0f0f0;
      border-radius: 12px 12px 12px 3px;
    }

    &.right {
      background: #1890ff;
      color: white;
      border-radius: 12px 12px 3px 12px;
    }
  }
}

// 保持原有样式并调整容器高度
.doubao {
  max-width: 600px;
  margin:0 auto;
  .list {
    height: 600px;
    padding: 20px 0;
       overflow-y: auto;
       
  }
  .bottom {
    height: 50px;
    border-top: 1px solid #ccc;
    display: flex;
    input {
      padding: 10px;
       width: 100%;
      height: 50px;
      font-size: 20px;
      outline: 0;
     
    }
    .send{
       width: 80px;
            height: 100%;
            background-color: #1890ff;
            color: white;
            border: none;
            cursor: pointer;
            &:hover {
                background-color: #007bff;
            }
            &:disabled {
                background-color: #ccc;
                cursor: not-allowed;
            }
    }
    
  }
}
